'use strict';
const path = require('path');
const mysql = require('./config.dev')
module.exports = appInfo => {
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1516777183049_9823';

  // add your config here
  config.view = {
    defaultViewEngine: 'nunjucks',
    defaultExtension: '.html',
    root: [
      path.join(appInfo.baseDir, 'app/view'),
      path.join(appInfo.baseDir, 'path/to/another')
    ].join(',')
  }
  config.mysql = mysql.mysql;
  config.middleware = ['errorHandler'];

  return config;
};